import request from '@/utils/request'

// 查询化学品信息列表
export function listChemical(query) {
  return request({
    url: '/archives/chemical/list',
    method: 'get',
    params: query
  })
}

// 查询化学品信息详细
export function getChemical(id) {
  return request({
    url: '/archives/chemical/' + id,
    method: 'get'
  })
}

// 新增化学品信息
export function addChemical(data) {
  return request({
    url: '/archives/chemical',
    method: 'post',
    data: data
  })
}

// 修改化学品信息
export function updateChemical(data) {
  return request({
    url: '/archives/chemical',
    method: 'put',
    data: data
  })
}

// 删除化学品信息
export function delChemical(id) {
  return request({
    url: '/archives/chemical/' + id,
    method: 'delete'
  })
}
